package dao;


import model.Projectdeclaration;

import java.util.List;

/**
 * The interface Projectdeclaration dao.
 */
public interface ProjectdeclarationDao {
    /**
     * Insert int.
     *
     * @param projectdeclaration the projectdeclaration
     * @return the int
     */
    int insert(Projectdeclaration projectdeclaration);

    /**
     * Update int.
     *
     * @param projectdeclaration the projectdeclaration
     * @return the int
     */
    int update(Projectdeclaration projectdeclaration);

    /**
     * Select by pdid list.
     *
     * @param pdid      the pdid
     * @param pageSize  the page size
     * @param pageIndex the page index
     * @return the list
     */
    List<Projectdeclaration> selectByPdid(int pdid, int pageSize, int pageIndex);

    /**
     * Select by passby tid list.
     *
     * @param pdid      the pdid
     * @param pageSize  the page size
     * @param pageIndex the page index
     * @return the list
     */
    List<Projectdeclaration> selectByPassbyTid(int pdid, int pageSize, int pageIndex);

    /**
     * Select by passby cid list.
     *
     * @param pdid      the pdid
     * @param pageSize  the page size
     * @param pageIndex the page index
     * @return the list
     */
    List<Projectdeclaration> selectByPassbyCid(int pdid, int pageSize, int pageIndex);
    int deleteBytid(int tid);

}
